﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NavSub.aspx.cs" Inherits="Accounting.admin.navigation.NavSub" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>子导航管理</title>
    <link type="text/css" href="../../css/AdminCss.css" rel="stylesheet" />
    <script type="text/javascript" src="../../js/AdminJs.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <div class="Div_Row">
            <h2>修改：子导航</h2>
        </div>
        <div class="Div_Size_Short Div_float_left Div_Margin_top_10">
            <asp:Repeater ID="RpNav" runat="server" OnItemCommand="RpNav_ItemCommand">
                <ItemTemplate>
                    <div class="Div_Margin_top_10">
                        <asp:LinkButton ID="LbtnNavName" CssClass="lbtn_Css Size_18 A_C_B Color_black" runat="server" Text='<%#Eval("Name") %>'><%#Eval("Name") %></asp:LinkButton>
                        <asp:Label ID="lblId" runat="server" Text='<%#Eval("Id") %>' Visible="false"></asp:Label>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class=" Div_Width_mid Div_float_left Div_Margin_left_20">
            <div id="NotNav" runat="server" class="Div_Width_long_600 Size_20 Div_Margin_top_10">
                无子导航修改
            </div>
            <div id="ShowNav" runat="server" class="">
                <div class="Div_Width_mid">
                    <h2 id="DivTitle" runat="server"></h2>
                    <div>
                        <div class="Div_Width_short Div_Height_Short Size_19 center Color_black bg_White Div_float_left">
                            子导航名称
                        </div>
                        <%--<div class="Div_Width_mid Div_Height_Short Size_19 center Color_black bg_White Div_float_left">
                            英文名称
                        </div>--%>
                        <div class="Div_Width_short Div_Height_Short Size_19 center Color_black bg_White Div_float_left">
                            显示顺序
                        </div>
                        <div class="Div_Width_short Div_Height_Short Size_19 center Color_black bg_White Div_float_left">
                            编辑
                        </div>
                    </div>
                    <asp:Repeater ID="RpSubNav" runat="server" OnItemCommand="RpSubNav_ItemCommand">
                        <ItemTemplate>
                            <div class="Div_Width_short Div_Height_mid Size_19 center Color_black bg_White Div_float_left Div_Margin_top_10">
                                <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                <asp:Label ID="lblSubId" runat="server" Text='<%#Eval("Id") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lblSubNavShow" runat="server" Text='<%#Eval("Show") %>' Visible="false"></asp:Label>
                            </div>
                            <%--<div class="Div_Width_mid Div_Height_mid Size_19 center Color_black bg_White Div_float_left Div_Margin_top_10">
                                <asp:Label ID="lblEnglishName" runat="server" Text='<%#Eval("EnglishName") %>'></asp:Label>
                            </div>--%>
                            <div class="Div_Width_short Div_Height_mid Size_19 center Color_black bg_White Div_float_left Div_Margin_top_10">
                                <asp:Label ID="lblSort" runat="server" Text='<%#Eval("Sort") %>'></asp:Label>
                            </div>
                            <div class="Div_Width_short Div_Height_mid Size_19 center Color_black bg_White Div_float_left Div_Margin_top_10">
                                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="lbtn_Css Color_black" >编辑</asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <span class="P_Alt Size_14 Div_Width_long_600"><span class="P_Note_Red">注：</span>若编辑过某条子导航的信息，想添加新的纪录，则请先点击重置后再添加</span>
                </div>
                <div class="Div_Width_long_600">
                    <div class="Div_Row">
                        <span>选择导航：</span>
                        <asp:DropDownList ID="ddlNav" runat="server" CssClass="TxtBox_short_short">
                        </asp:DropDownList>
                    </div>
                    <div class="Div_Row">
                        <span>导航名称：</span>
                        <asp:TextBox ID="txtName" runat="server" CssClass="TxtBox_mid_short"></asp:TextBox>
                        <asp:Label ID="lblNavId" runat="server" Text='' Visible="false"></asp:Label>
                        <asp:Label ID="lblSubId" runat="server" Text='' Visible="false"></asp:Label>
                    </div>
<%--                    <div id="EnglishName" runat="server" class="Div_Row">
                        <span>英文名称：</span>
                        <asp:TextBox ID="txtEnglishName" runat="server" CssClass="TxtBox_mid_short"></asp:TextBox>
                    </div>--%>
                    <div class="Div_Row">
                        <span>显示顺序：</span>
                        <asp:TextBox ID="txtSort" runat="server" CssClass="TxtBox_short_short_W50"></asp:TextBox>
                    </div>
                    <div id="DivCboxShow" runat="server" class="Div_Row">
                        <span>首页显示：</span>
                        <asp:CheckBox ID="CboxShow" runat="server" Text="显示" />
                    </div>
                    <div class="Div_Row">
                        <span>链接地址：</span>
                        <asp:TextBox ID="txtWeb" runat="server" CssClass="TxtBox_mid_short"></asp:TextBox>
                        <p class="P_Alt Size_12"><t class="P_Note_Red">注：</t>选填项，若有外链地址请输入正确的地址，若没有外链，请不要输入任何文字</p>
                    </div>
                    <div class="Div_Row">
                        <asp:Button ID="btnSubmit" runat="server" CssClass="btn_Css" Text="提交" OnClick="btnSubmit_Click" />
                        <asp:Button ID="btnReset" runat="server" CssClass="btn_Css" Text="重置" OnClick="btnReset_Click" />
                        <asp:Button ID="btnDel" runat="server" CssClass="btn_Css" Text="删除" OnClick="btnDel_Click" />
                        
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
